﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Onshi.POS.Formularios.Recursos
{
    public partial class FormularioBase : Form
    {
        #region Constructores

        public FormularioBase()
        {
            InitializeComponent();
        }

        #endregion

        #region Atributos

        protected Procesando procesando;
        protected Boolean teclaEscape = true;

        #endregion

        #region Metodos

        public void EstablecerCuadroDialogo()
        {
            MinimizeBox = false;
            MaximizeBox = false;
            FormBorderStyle = FormBorderStyle.FixedSingle;
        }

        #endregion

        #region Eventos

        private void FormularioBase_KeyDown(Object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape & teclaEscape)
                Close();
        }

        #endregion
    }
}
